package com.example.xianji.activity;

import android.os.Bundle;
import android.os.Build.VERSION;
import android.os.Build.VERSION_CODES;
import android.app.Activity;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.WindowManager;
import android.widget.RelativeLayout;

import com.example.xianji.R;

public class Main_Skill_GuanLiActivity extends Activity implements OnClickListener {
    /**
     * 技术成果管理页面
     */
    private RelativeLayout skill_relative_guanli_back, relativelayout_my_collection_skill, relativelayout_my_zixun_skill;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        if (VERSION.SDK_INT >= VERSION_CODES.KITKAT) {
            getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
            getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);
        }
        setContentView(R.layout.activity_main__skill__guan_li);

        skill_relative_guanli_back = (RelativeLayout) findViewById(R.id.skill_relative_guanli_back);
        relativelayout_my_collection_skill = (RelativeLayout) findViewById(R.id.relativelayout_my_collection_skill);
        relativelayout_my_zixun_skill = (RelativeLayout) findViewById(R.id.relativelayout_my_zixun_skill);
        skill_relative_guanli_back.setOnClickListener(this);
        relativelayout_my_collection_skill.setOnClickListener(this);
        relativelayout_my_zixun_skill.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        if (v.getId() == R.id.skill_relative_guanli_back) {
            Main_Skill_GuanLiActivity.this.finish();
        } else if (v.getId() == R.id.relativelayout_my_collection_skill) {
            //我收藏的技术
            Intent intent = new Intent(this, Main_My_CollectionActivity.class);
            intent.putExtra("collection_type", "achieve");
            startActivity(intent);

        } else if (v.getId() == R.id.relativelayout_my_zixun_skill) {
            //我咨询的技术
            startActivity(new Intent(this, Main_my_zixun_SkillActivity.class));
        }
    }
}
